package com.yuntian.mapper;

import com.yuntian.entity.OrderDetail;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface OrderDetailMapper {
    // 批量插入订单详情
    void batchInsert(List<OrderDetail> details);

    // 根据订单ID查询订单详情
    List<OrderDetail> selectByOrderId(Integer orderId);

    // 根据订单ID删除所有详情
    void deleteByOrderId(Integer orderId);
}
